package net.wanderinghorse.json;

/**
 * The JSONException is thrown by the JSON.org classes when things are amiss.
 * @author JSON.org, Stephan Beal
 * @version 2010-10-23
 *
 * Chnages by S. Beal:
 *
 * - Changed parent class from Exception to RuntimeException, because
 * in practice using unchecked exceptions here greatly simplifies the
 * common use cases. 
 */
public class JSONException extends RuntimeException {
    /**
	 *
	 */
	private static final long serialVersionUID = 0;

    /**
     * Constructs a JSONException with an explanatory message and
     * a "cause" exception.
     *
     * @param message Detail about the reason for the exception.
     * @param cause The originating exception.
     */
    public JSONException(String message, Throwable cause) {
        super(message,cause);
    }
    /**
     * Constructs a JSONException with an explanatory message.
     * @param message Detail about the reason for the exception.
     */
    public JSONException(String message) {
        super(message);
    }

    /**
     * Constructs a JSONException with a "cause" exception.
     *
     * @param cause The originating exception.
     */
    public JSONException(Throwable cause) {
        super(cause);
    }

}